const utils = require('./utils.js');

const fs = require('fs-extra')

const chinaFristNames = fs.readJsonSync('./data/china_fristname.json');
const chinaLastNames = fs.readJsonSync('./data/china_lastname.json');

const data = {
    'China': {
        //姓
        firstName: chinaFristNames,
        //名
        lastName: chinaLastNames
    },
    'united States': {

    }
}

module.exports = {
    get(country) {
        return {
            firstName: utils.randArray(data[country].firstName),
            lastName: utils.randArray(data[country].lastName)
        }
    }
}